<template>
  <el-row >
    <el-col >
      <el-menu
          active-text-color="#79bbff"
          background-color=" #ecf5ff"
          class="el-menu-vertical-demo"
          default-active="2"
          text-color="#45545f"
          @open="handleOpen"
          @close="handleClose"
          :router = "true"
      >
<!--        <h5 class="mb-2">时间 </h5>-->
        <div style="height: 60px; line-height: 60px; text-align: center">
<!--          <img src="../assets/logo.png" alt="" style="width: 20px; position: relative; top: 5px; right: 5px">-->
          <img src="../assets/time.png" alt="" style="width: 20px; position: relative; top: 5px; right: 5px">
          <b>时间管理</b>
        </div>
        <el-menu-item index="/sy">
          <el-icon><House /></el-icon>
          <span>首页</span>
        </el-menu-item>
        <el-menu-item index="/home">
          <el-icon><Star /></el-icon>
          <span>今日待办</span>
        </el-menu-item>
        <el-menu-item index="/count">
          <el-icon><Edit /></el-icon>
          <span>倒计时</span>
        </el-menu-item>
        <el-menu-item index="/focus" >
          <el-icon><document/></el-icon>
          <span>专注模式</span>
        </el-menu-item>
        <el-menu-item index="/arrange">
          <el-icon><setting /></el-icon>
          <span>时间安排</span>
        </el-menu-item>
      </el-menu>
    </el-col>
  </el-row>
</template>

<script lang="ts" setup>

const handleOpen = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
const handleClose = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}

</script>

<style>
.el-menu-vertical-demo{
  height: 100vh;
  width: 250px;
}




</style>
